package com.sm.honkon.ui.fragment.setting

import android.os.Bundle
import com.sm.honkon.R
import com.sm.honkon.app.base.BaseFragment
import com.sm.honkon.app.ext.goLogin
import com.sm.honkon.app.ext.goMain
import com.sm.honkon.app.handle.BottomHandle
import com.sm.honkon.databinding.FrgResetSettingBinding
import com.sm.honkon.ui.model.ResetSettingViewModel
import kotlinx.android.synthetic.main.frg_reset_setting.*
import me.hgj.jetpackmvvm.ext.nav

/**
 * @description
 * @author csw
 * @date 2021-05-21
 */
class ResetSettingFragment:BaseFragment<ResetSettingViewModel,FrgResetSettingBinding>() {
    override fun layoutId(): Int = R.layout.frg_reset_setting

    override fun initView(savedInstanceState: Bundle?) {
        mDatabind.handle = BottomHandle(nav())
        btn_reset.setOnClickListener {
            mViewModel.reset {
                nav().goLogin()
            }
        }
    }

}